package com.csmz.bxg.Utils;

import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;

/**
 * Created by Administrator on 2018/4/9.
 */

public class AnalysisUtils {
    /**
     * 从SharedPreferences中读取登录用户名
     */

    public static String readLoginUserName(Context context){
        SharedPreferences sp = context.getSharedPreferences("LoginInfo", Context.MODE_PRIVATE);
        String userName=sp.getString("loginUserName","");
        //Log.d("csmz", "readLoginUserName: "+userName);
        return userName;
    }
}
